using UnityEngine;

public class TestPoint : MonoBehaviour
{
    public Vector3 worldPosition;
    public Vector3 localPosiiton;

    public Vector3 worldPosition_rectTransform;
    public Vector3 localPosition_rectTransform;

    private void Update()
    {
        worldPosition = transform.position;
        localPosiiton = transform.localPosition;
        if(TryGetComponent<RectTransform>(out RectTransform rectTransform))
        {
            worldPosition_rectTransform = rectTransform.position;
            localPosition_rectTransform = rectTransform.localPosition;
        }
    }
}
